package com.liu.design.structure.component;

import java.util.ArrayList;
import java.util.List;

/**
 * @author LIU
 * @version 1.0
 * @date 2024/5/6 14:17
 * @description TODO
 */
public class CompositeDiscount implements DiscountStrategy {
    protected List<DiscountStrategy> strategies = new ArrayList<>();

    public void add(DiscountStrategy strategy){
        strategies.add(strategy);
    }

    @Override
    public Double getTotal(double price) {
        return null;
    }
}
